#include <stdio.h>
int main() {
	int m, i, x = 1;
	scanf("%d", &m);
	for (i = 1; i <= m - 1; i++)
		x = (x + 1) * 2;
	printf ("%d", x);
}
